package com.beans;
import com.commons.Enums;

//会员信息
public class MemberInfo {
	private int id;
	private String memberNo; 	   //会员id
	private String memberName;     //会员姓名
//	private String password; 会员密码,在后台程序中,这个字段是不该出现的,但在前台中应该有
	private String phone;	       //手机号
	private String email; 		   //电子邮件
	private String registerDate;   //注册日期
	private String idCard;         //身份证号
	private int loginCounts;       //登录次数
	private String lastLoginDate;  //最后登录日期
	private String ip;             //常用ip (以逗号分隔,最多5个)
	private Enums.EmnuMemberLevel memberLevel ;  //会员等级  比如金版会员,龙卷风会员等
	
	/*附,由于数据库中的DateTime类型查询出来的数据可能在后面多了个讨厌 的 0,如
		2016-06-21 13:55:01.0   所以关于日期的 get方法,都进行了截取,把讨厌的 0去掉了
	*/
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}	
	public String getMemberName() {
		return memberName;
	}
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRegisterDate() {    
		return registerDate.substring(0,registerDate.length()-2);
	}
	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public int getLoginCounts() {
		return loginCounts;
	}
	public void setLoginCounts(int loginCounts) {
		this.loginCounts = loginCounts;
	}
	public String getLastLoginDate() {
		return lastLoginDate.substring(0,registerDate.length()-2);
	}
	public void setLastLoginDate(String lastLoginDate) {
		
		this.lastLoginDate = lastLoginDate;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Enums.EmnuMemberLevel getMemberLevel() {
		return memberLevel;
	}
	public void setMemberLevel(Enums.EmnuMemberLevel memberLevel) {
		this.memberLevel = memberLevel;
	}
	public String getMemberNo() {
		return memberNo;
	}
	public void setMemberNo(String memberNo) {
		this.memberNo = memberNo;
	}

}
